import service from "..";
//获取轮播图数据
export function getBanner(){
    return service({
        method:"GET",
        url:"/banner?type=0",
    })
}
//获取歌单
export function getMusicList(){
    return service({
        method:"GET",
        url:"/top/playlist?limit=10&order=hot",
    })
}
//搜索
export function SearchMusic(data){
    return service({
        method:"GET",
        url:`/search?keywords=${data}`
    })
}
//登录
export function getPhoneLogin(data){
    return service({
        method:"GET",
        url:`/login/cellphone?phone=${data.phone}&password=${data.password}`
    })
}
export function getLoginUser(data){
    return service({
        method:"GET",
        url:`/user/detail?uid=${data}`
    })
}

